package org.jeecg.modules.door.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 门锁管理
 * @Author: jeecg-boot
 * @Date:   2023-08-08
 * @Version: V1.0
 */
@ApiModel(value="lwgy_joint_door对象", description="门锁管理")
@Data
@TableName("lwgy_joint_door")
public class LwgyJointDoor implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    @Excel(name = "校区", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "校区")
    /*@Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")*/
    private java.lang.String xq;
    /**楼号*/
    @Excel(name = "楼号", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "楼号")
    /*    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")*/
    private java.lang.String lh;
    /**层号*/
    @Excel(name = "单元号", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "单元号")
    /*  @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")*/
    private java.lang.String unit;
    /**层号*/
    @Excel(name = "层号", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "层号")
    /*@Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")*/
    private java.lang.String ch;
    /**房间号*/
    @Excel(name = "房间号", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "房间号")
    /*    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")*/
    private java.lang.String fjh;
    /**房间号*/
    @Excel(name = "房间id", width = 15)
    @ApiModelProperty(value = "房间id")
    /*    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")*/
    private java.lang.String roomId;
	/**门锁标识*/
	@Excel(name = "门锁标识", width = 15)
    @Dict(dictTable = "lwgy_door_info",dicText = "lock_number",dicCode = "id")
    @ApiModelProperty(value = "门锁标识")
    private String doorNo;
	/**门锁状态*/
	/*@Excel(name = "门锁状态", width = 15, dicCode = "lock_state")
    @Dict(dicCode = "lock_state")
    @ApiModelProperty(value = "门锁状态")
    private String doorState;*/
	/**控制类型*/
	@Excel(name = "控制类型", width = 15, dicCode = "eglock_type")
    @Dict(dicCode = "eglock_type")
    @ApiModelProperty(value = "控制类型")
    private String doorType;
    /**是否同步*/
/*    @Excel(name = "是否同步", width = 15, dicCode = "activiti_sync")*/
    @Dict(dicCode = "activiti_sync")
    @ApiModelProperty(value = "是否同步")
    private String sysn;
    /**分组id*/
    @Excel(name = "分组id", width = 15)
    @ApiModelProperty(value = "分组id")
    private String groupId;
    //以下，从接口中获取
    @Excel(name = "第三方小区ID", width = 15)
    @ApiModelProperty(value = "第三方小区ID")
    private String thirdHouseId;
    @Excel(name = "第三方小区名称", width = 15)
    @ApiModelProperty(value = "第三方小区名称")
    private String thirdHouseName;

    @Excel(name = "第三方楼宇id", width = 15)
    @ApiModelProperty(value = "第三方楼宇id")
    private String thirdBuildingId;
    @Excel(name = "第三方楼宇", width = 15)
    @ApiModelProperty(value = "第三方楼宇")
    private String thirdBuildingName;

    @Excel(name = "第三方楼层id", width = 15)
    @ApiModelProperty(value = "第三方楼层id")
    private String thirdFloorId;
    @Excel(name = "第三方楼层", width = 15)
    @ApiModelProperty(value = "第三方楼层")
    private String thirdFloorName;

    @Excel(name = "第三方房间id", width = 15)
    @ApiModelProperty(value = "第三方房间id")
    private String thirdRoomId;
    /**第三方房间id*/
    @Excel(name = "第三方房间名称", width = 15)
    @ApiModelProperty(value = "第三方房间名称")
    private java.lang.String thirdRoomName;

    @Excel(name = "房间状态", width = 15)
    @ApiModelProperty(value = "房间状态")
    private java.lang.Integer roomState;

    @Excel(name = "门锁电量", width = 15)
    @ApiModelProperty(value = "门锁电量")
    private java.lang.Integer electricNum;

    @Excel(name = "门锁MAC", width = 15)
    @ApiModelProperty(value = "门锁MAC")
    private java.lang.String lockMac;

    @Excel(name = "门锁状态", width = 15)
    @ApiModelProperty(value = "门锁状态")
    private java.lang.Integer lockState;

    @Excel(name = "门锁AES秘钥", width = 15)
    @ApiModelProperty(value = "门锁AES秘钥")
    private java.lang.String aesKey;

    @Excel(name = "管理员鉴权码", width = 15)
    @ApiModelProperty(value = "管理员鉴权码")
    private java.lang.String adminAuthCode;

    @Excel(name = "普通用户鉴权码", width = 15)
    @ApiModelProperty(value = "普通用户鉴权码")
    private java.lang.String generalAuthCode;

    @Excel(name = "临时鉴权码", width = 15)
    @ApiModelProperty(value = "临时鉴权码")
    private java.lang.String tempAuthCode;

    @ApiModelProperty(value = "电表号")
    private java.lang.String roomNumber;

    //以下为鲁维字段

    /**锁状态（D5）*/
    @Excel(name = "锁状态（D5）", width = 15, dicCode = "lockState")
    @Dict(dicCode = "lockState")
    @ApiModelProperty(value = "锁状态（D5）")
    private String lockStatus;
    /**开锁方式（D6）*/
    @Excel(name = "开锁方式（D6）", width = 15, dicCode = "unlockingMethod")
    @Dict(dicCode = "unlockingMethod")
    @ApiModelProperty(value = "开锁方式（D6）")
    private String unlockingMethod;
    /**关门状态（D7）*/
    @Excel(name = "关门状态（D7）", width = 15, dicCode = "closingStatus")
    @Dict(dicCode = "closingStatus")
    @ApiModelProperty(value = "关门状态（D7）")
    private String closingStatus;
    /**电池电压（D8）*/
    @Excel(name = "电池电压（D8）", width = 15)
    @ApiModelProperty(value = "电池电压（D8）")
    private String voltage;
    /**最后开锁号(9~13))*/
    @Excel(name = "最后开锁号(9~13))", width = 15)
    @ApiModelProperty(value = "最后开锁号(9~13))")
    private String finalUnlock;
    /**温度（D15）*/
    @Excel(name = "温度（D15）", width = 15)
    @ApiModelProperty(value = "温度（D15）")
    private String temperature;

    /**锁次数(D16D17)*/
    @Excel(name = "开关锁次数(D16D17)", width = 15)
    @ApiModelProperty(value = "开关锁次数(D16D17)")
    private String times;
    /**所属网关*/
    @Excel(name = "所属网关", width = 15,dictTable = "lwgy_joint_gateway", dicText = "gateway_name", dicCode = "id")
    @Dict(dictTable = "lwgy_joint_gateway", dicText = "gateway_name", dicCode = "id")
    @ApiModelProperty(value = "所属网关")
    private String gatewayId;
    /**状态*/
    @Excel(name = "状态", width = 15, dicCode = "del_flag")
    @Dict(dicCode = "del_flag")
    @ApiModelProperty(value = "状态")
    private String status;

    //鲁维字段end

}
